<html>
<head>
	<script type="text/javascript" src="jquery.js"></script>
	<script type="text/javascript" src="readXML.js"></script>
    <script>
    var source = new EventSource("http://localhost:8080/sms/stream?tiles=526,336,10,162,399,10,301,387,10,527,359,10,815,529,10,511,340,10");
    //var source = new EventSource("http://localhost:8080/Test/ThreadedServlert?tiles=1,1,1");
	source.addEventListener('msg', function(e) {
		ev = document.getElementById('events');
        ev.innerHTML += e.data + "<br>";    
	});
	


  </script>
</head>
<body>
	<div id="events"></div>
</body>
</html>